<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module">
        // import mya from './a.js';
        // console.log(mya);
        // import {mya,myb} from './a.js';
        // console.log(mya,myb);

        // 导入的时候起别名 
        // import {mya as myaa ,myb as mybb} from './a.js';
        // console.log(myaa);
        // console.log(mybb);


        // 把导出的所有内容 起别名 
        import * as myobj from './a.js';
        // console.log(myobj);
        let {mya,myb,default:mydefault} = myobj;
        console.log(mya,myb,mydefault);

        // let default = 10;

        
    </script>
</body>
</html>